<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Comments_model extends DataMapper
{	
    public $table = "comments";
    public $has_one = array(
        'entries' => array(
            'class' => 'entries_model',
            'other_field' => 'comments',
            'join_self_as' => 'comment',
            'join_other_as' => 'entries',
        ),
    );
}
